Skip to content

Fix hashes.bin filestream error on Linux#13

Merged
ThuverX merged 1 commit intoThuverX:mainfrom
j4ceee:hashes-stream-fix
Jun 22, 2025
Merged

Fix hashes.bin filestream error on Linux#13
ThuverX merged 1 commit intoThuverX:mainfrom
j4ceee:hashes-stream-fix

Conversation

@j4ceee
Copy link
Contributor

@j4ceee j4ceee commented Jun 19, 2025

When hashes.bin does not exist or is otherwise not usable the filestream will be invalid. This has seemingly no consequences on Windows but will prevent the game from booting on Linux with Proton. This PR introduces an early exit condition in the IdResolver class to handle invalid file streams.

Error handling improvement:

  • src/core/resource/IdResolver.cpp: Added a check to verify the file stream's state and access flags before proceeding. If the stream is invalid, an error is logged and the function exits early to avoid attempting to read from an invalid stream.

@ThuverX ThuverX merged commit 22e2767 into ThuverX:main Jun 22, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants